package com.biscuit.page.basicservice.api;

import com.biscuit.common.annotation.RequestWhitelist;
import com.biscuit.common.base.BaseModelResponse;
import com.biscuit.common.base.BaseResponse;
import com.biscuit.common.base.BaseResponseVoid;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;

/**
 * @author biscuit
 * @create 2024年08月05日 14:40
 */
@Api(tags = "支付相关接口")
@RequestMapping("/payment")
public interface IPaymentRemote {

    @RequestWhitelist
    @ApiOperation("阿里支付")
    @GetMapping("/alipay/{amount}")
    void alipay(@PathVariable("amount")BigDecimal amount, HttpServletResponse httpResponse);

    @RequestWhitelist
    @ApiOperation("阿里支付回调接口")
    @PostMapping("/alipay/notify")
    BaseResponse<BaseResponseVoid> alipayNotify(HttpServletRequest request) throws Exception;

}
